<%@page import="java.io.* , java.util.*, java.sql.*, com.myapp.struts.actionform.*, com.myapp.struts.dao.*, com.myapp.struts.beans.*"%>
<html>
    <head>
        <title>Supplier Master</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <link href="../../../../css/cms.css" rel="stylesheet" type="text/css">
        <script language="javascript">
		function Validate()
			{
			var index1=document.supplierdelete.supplierName.selectedIndex;                        
                        if(index1<=0)
                        {
                            alert("Please Select Supplier Name....");                            
                            document.supplierdelete.supplierName.focus();
                            return false;
                        }
			}
		</script>
    </head>
    <body>
        <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td>
     <form id="supplierdelete" name="supplierdelete" action="../../../../DeleteSupplier" method="post" onSubmit="return Validate();">
                        <table border="0" align="center" cellpadding="0" cellspacing="0" style="border-right: #000000 1px solid;
                               border-top: #000000 1px solid; border-left: #000000 1px solid;  border-bottom: #000000 1px solid; font-size: 9pt; color: #000000; font-family: Arial;">
                            <tr>
                                <th height="32" colspan="2" align="center">Delete a Supplier</th>
                            </tr>
                            <tr>
                                <td width="169"><span class="style1">Suppler Name </span></td>
                                <td width="175"><select name="supplierName" id="supplierName" onChange="javascript:getDetails()">
                                        <option> </option>
                                        <%
                                                          SupplierDao sdao=new SupplierDao();
                                                          Vector gp1 = sdao.getSupplierNames();
                                  if (gp1 != null) {
                                      Iterator itg = gp1.iterator();
                                      while (itg.hasNext()) {
                                          SupplierMasterFormBean gb = (SupplierMasterFormBean) itg.next();
                                          String supp_name = gb.getSupplierName();
                                        %>
                                        <option value="<%=supp_name%>"><%=supp_name%></option>
                                        <%}

                                  }%>
                                    </select></td>
                            </tr>
                            <tr>
                                <td colspan='2' align="center"><input name="Submit" type="submit" value="Submit" /></td>
                            </tr>
                        </table>
                    </form></td>
            </tr>
        </table>
    </body>
</html>
